package router

import (
	"github.com/gin-gonic/gin"
	"server/api/v1"
)

func InitUserRouter(Router *gin.RouterGroup) {

	UserRouter := Router.Group("user") /*.Use(middleware.OperationRecord())*/

	{
		UserRouter.POST("register", v1.Register)
		UserRouter.PUT("changePassword", v1.ChangePassword) // 修改密码
		UserRouter.GET("getUserList", v1.GetUserList)        // 分页获取用户列表
		UserRouter.GET("getUserInfo/:id", v1.GetUserInfo)        //获取用户基本信息
		UserRouter.PUT("changeUserRole", v1.ChangeUserRole) // 修改用户角色
		UserRouter.DELETE("deleteUser/:id", v1.DeleteUser)       // 删除用户
	}
}
